package com.hdkj.educms.controller;

import com.hdkj.commonutils.R;
import com.hdkj.educms.entity.CmsBanner;
import com.hdkj.educms.service.CrmBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/educms/bannerfront")
//


public class BannerfrontController {
    @Autowired
    private CrmBannerService bannerService;

    @GetMapping("getAllbanner")
    public R allbanner(){
        List<CmsBanner> list=bannerService.selectallbanner();
    return R.ok().data("list",list);
    }
}
